#!/usr/bin/python

# people'name as dic

people = {
        'alice':{
        'phone':'2341',
        'addr':'Foo drive 23'
        },

        'beth':{
        'phone':'9102',
        'addr':'Bar street 42'
        }, 
        
        'cecil':{
        'phone':'3158',
        'addr':'Baz avenue 90'
        }
}

labels = {
        'phone': 'phone number',
        'addr': 'address'
}

name = raw_input('Name: ')
name = name.lower()

request = raw_input('phone number(p) or address(a)? ' )
request = request.lower()

if request == 'p' : key = 'phone'
if request == 'a' : key = 'addr'

print labels[key]

if name in people : print "%s's %s is %s." % \
        (name, labels[key],people[name][key])

